package com.shijie.feign;

import com.shijie.dto.JudgeDTO;
import com.shijie.feign.fallback.JudgeFallback;
import com.shijie.result.SjResult;
import com.shijie.vo.JudgeVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-judge", fallback = JudgeFallback.class)
public interface JudgeFeign {

    @PostMapping("/judge")
    SjResult<JudgeVO> judge(@RequestBody JudgeDTO judgeDTO);

}
